<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>v-if&v-else&v-show</title>
		<script src="../assets/js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<div class="login" v-if="isLogin">你好！admin</div>
			<div class="login" v-else="isLogin">你还没有登录！请先登录！</div>
			<div class="register" v-show="isReg">注册</div>
		</div>
		<script>
			var app = new Vue({
				el:"#app",
				data:{
					isLogin:false,
					isReg:false
				}
			})
		</script>
	</body>
</html>
